package com.yin.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


/**
*@author LSY
*Time: 2018年12月26日下午4:27:53
*
*
*/
@RestController
public class HelloController {

	private final static Logger logger = LoggerFactory.getLogger(HelloController.class);
	@RequestMapping(value = "/hello", method = RequestMethod.GET)
	public String hello() {
		logger.info("info");
		logger.debug("记录debug日志");
		logger.error("记录error报错日志");
		return "hello world";
	}
}
